package com.liang.propertiesio;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class StoreProperties {
    public static void main(String[] args) throws IOException {
        Properties prop = new Properties();
        prop.put("zhangsan", "23");
        prop.put("lisi", "24");
        prop.put("wangwu", "25");

        FileWriter fw = new FileWriter("prop.properties");
        prop.store(fw, null);
        fw.close();
    }
}
